﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
namespace MRSite.Entity
{
    [Table(Name = "servicecenter")]
    public class Servicecenter : Entity
    {
        /// <summary>
        ///
        /// </summary>
        [Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
        public override int id { get; set; }

        /// <summary>
        /// 服务网点名称
        /// </summary>
        [Column(Name = "title")]
        public String title { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        [Column(Name = "user_id")]
        public int user_id { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [Column(Name = "user_name")]
        public String user_name { get; set; } 

        /// <summary>
        /// 联系人
        /// </summary>
        [Column(Name = "realname")]
        public String realname { get; set; }

        /// <summary>
        ///  联系电话
        /// </summary>
        [Column(Name = "mobile")]
        public String mobile { get; set; }

        /// <summary>
        /// 省
        /// </summary>
        [Column(Name = "province")]
        public String province { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        [Column(Name = "city")]
        public String city { get; set; }

        /// <summary>
        /// 县
        /// </summary>
        [Column(Name = "area")]
        public String area { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        [Column(Name = "address")]
        public String address { get; set; }

        /// <summary>
        /// 主营业务
        /// </summary>
        [Column(Name = "zhuying")]
        public String zhuying { get; set; }

        /// <summary>
        /// 外围照片
        /// </summary>
        [Column(Name = "imgurl")]
        public String imgurl { get; set; }

        /// <summary>
        /// 内部照片
        /// </summary>
        [Column(Name = "imgurl_n")]
        public String imgurl_n { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "addtime",IsDbGenerated=true)]
        public DateTime addtime { get; set; }

        /// <summary>
        /// 确认时间
        /// </summary>
        [Column(Name = "checktime")]
        public DateTime? checktime { get; set; }

        /// <summary>
        ///0,审核中，1可用
        /// </summary>
        [Column(Name = "status")]
        public int status { get; set; }

           /// <summary>
        /// 开始时间
        /// </summary>
        [Column(Name = "starttime")]
        public DateTime? starttime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [Column(Name = "endtime")]
        public DateTime? endtime { get; set; }

       
         /// <summary>
        /// 是否优秀
        /// </summary>
        [Column(Name = "isyouxiu")]
        public int isyouxiu { get; set; }

           /// <summary>
        /// 成为优秀时间
        /// </summary>
        [Column(Name = "yx_time")]
        public DateTime? yx_time { get; set; }

        /// <summary>
        /// 是否返还红包
        /// </summary>
        [Column(Name = "isreturn")]
        public int isreturn { get; set; }

         /// <summary>
        /// 返红包时间
        /// </summary>
        [Column(Name = "return_time")]
        public DateTime? return_time { get; set; }
        
        
    }
}
